CustomerGrid = Ext.extend(CustomerGridUi, {
			initComponent	: function() {
				CustomerGrid.superclass.initComponent.call(this);

				this.sm = this.getSelectionModel();
			},
			listeners		: {
				'rowdblclick'	: function(grid, rowIdx) {
					var fp = CustomerForm.getInstance();
					mainPanel.addTab(fp);
					fp.getForm().loadRecord(this.sm.getSelected());
				}
			},
			addAction		: function() {
				var fp = CustomerForm.getInstance();
				mainPanel.addTab(fp);
				fp.getForm().reset();
			}
		});

SearchPanel = Ext.extend(SearchPanelUi, {
			initComponent	: function() {
				SearchPanel.superclass.initComponent.call(this);
			}
		});

CustomerForm = Ext.extend(CustomerFormUi, {
			initComponent	: function() {
				CustomerForm.superclass.initComponent.call(this);
			},
			saveAction		: function() {
				alert('process... ');
			}
		});

CustomerForm.getInstance = function() {
	var form = Ext.getCmp('CustomerForm');
	if (!form) {
		form = new CustomerForm();
	}

	return form;
}